package com.lanyuan.a.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.lanyuan.a.bean.TreeObject;
import com.lanyuan.a.dao.BaseDao;
import com.lanyuan.a.service.TreeObjectService;
@Service("treeObjectService")
public class TreeObjectServiceImpl implements TreeObjectService {
	@Resource
	private BaseDao<TreeObject> baseDao;
	@Override
	public List<TreeObject> findAllList(int root) {
		return baseDao.find("from TreeObject where root=?", new Object[]{root});
	}

}
